package cn.bone.ou.data.controller;

import cn.bone.base.bean.CommonResult;
import cn.bone.ou.data.param.OpLoggerParam;
import cn.bone.ou.data.service.IOpLoggerService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import javax.validation.Valid;

@RestController
@RequestMapping("/ou/logger")
public class OpLoggerController {

    @Resource
    private IOpLoggerService loggerService;

    @RequestMapping("/list")
    public CommonResult list(@Valid OpLoggerParam.ListParam param){
        return loggerService.list(param);
    }

    @RequestMapping("/home")
    public CommonResult home(@Valid OpLoggerParam.HomeParam param){
        return loggerService.home(param);
    }
}
